﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.TemplateMethod.Interest
{
    /// <summary>
    /// 活期用户
    /// </summary>
    public class CurrentUser :BaseUser
    {
        /// <summary>
        /// 计算利息
        /// </summary>
        /// <param name="currBalance">余额</param>
        /// <returns></returns>
        public override decimal CalculateInterest(decimal balance)
        {
            return (decimal)0.03 * balance;
        }
    }
}
